package f;

import f.f0.c;
import g.g;
import java.io.Closeable;
import javax.annotation.Nullable;

/* compiled from: ResponseBody */
public abstract class c0 implements Closeable {
    public void close() {
        c.f(q());
    }

    public abstract long n();

    @Nullable
    public abstract t o();

    public abstract g q();

    /* JADX WARNING: Missing exception handler attribute for start block: B:8:0x0014 */
    /* JADX WARNING: Can't wrap try/catch for region: R(7:1|2|(3:4|5|(1:7))|8|9|13|10) */
    public final java.lang.String r() throws java.io.IOException {
        /*
        r3 = this;
        r0 = r3.q();
        r1 = r3.o();	 Catch:{ all -> 0x0020 }
        r2 = f.f0.c.j;	 Catch:{ all -> 0x0020 }
        if (r1 == 0) goto L_0x0014;
    L_0x000c:
        r1 = r1.c;	 Catch:{ IllegalArgumentException -> 0x0014 }
        if (r1 == 0) goto L_0x0014;
    L_0x0010:
        r2 = java.nio.charset.Charset.forName(r1);	 Catch:{ IllegalArgumentException -> 0x0014 }
    L_0x0014:
        r1 = f.f0.c.b(r0, r2);	 Catch:{ all -> 0x0020 }
        r1 = r0.o0(r1);	 Catch:{ all -> 0x0020 }
        f.f0.c.f(r0);
        return r1;
    L_0x0020:
        r1 = move-exception;
        f.f0.c.f(r0);
        throw r1;
        */
        throw new UnsupportedOperationException("Method not decompiled: f.c0.r():java.lang.String");
    }
}
